﻿@model Tuple<IEnumerable<HCM_maps_website.Models.ServiceModel>,IEnumerable<HCM_maps_website.Models.PlaceModels>>
           
    @if (Model == null || (Model.Item1==null && Model.Item2==null) 
        || (Model.Item1 == null && Model.Item2.Count() == 0) || (Model.Item2 == null && Model.Item1.Count() == 0)
        || (Model.Item1.Count() ==0 && Model.Item2.Count()==0))
    {
        <li id="notfound">Không tìm thấy kết quả</li>
    }else
    {
        if (Model.Item1 != null)
        {
            foreach (HCM_maps_website.Models.ServiceModel service in Model.Item1)
            {
                <li datalat="@service.Coordinate.Longitude" datalong="@service.Coordinate.Latitude"><div>
                <img alt="" src="@Url.Content("~/Content/mobile_images/preview.jpg")" />
                <div class="info"><h3 class="namelocation">@service.FullName</h3>
                <a class="address">@service.Address</a></div></div></li>
            }
        }
        if (Model.Item2 != null)
        {
            foreach (HCM_maps_website.Models.PlaceModels place in Model.Item2)
            {
                <li datalat="@place.Coordinate.Longitude" datalong="@place.Coordinate.Latitude"><div>
                <img alt="" src="@Url.Content("~/Content/mobile_images/preview.jpg")" />
                <div class="info"><h3 class="namelocation">@place.Name</h3>
                <a class="address">@place.HomeNumber @place.Area</a></div></div></li>
            }
        }
    }